<?php namespace App\Http\Controllers\Backstage;

use App\Http\Controllers\Controller;
use App\Services\Tool\Jpush\JpushTool;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;

class HomeController extends Controller
{

    /*
    |--------------------------------------------------------------------------
    | HomeController
    |--------------------------------------------------------------------------
    |
    | 后台首页
    |
    */

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {

    }

    /**
     * 控制台
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function getIndex()
    {
        return view('backstage.home.index');
    }

    public function getT1(){
        $pathToFile =  storage_path().'/logs/laravel-'.date('Y-m-d').'.log';
        return response()->download($pathToFile);
    }
}
